/**
 * Copyright &copy; 2015-2020 <a href="www.dsesa.cn/">ESA</a> All rights reserved.
 */
package com.jeeplus.modules.sys.service;

import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.sys.entity.ArchCostItem;
import com.jeeplus.modules.sys.entity.LateFeePlan;
import com.jeeplus.modules.sys.mapper.LateFeePlanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 违约金方案Service
 * @author xujin
 * @version 2020-01-09
 */
@Service
@Transactional(readOnly = true)
public class LateFeePlanService extends CrudService<LateFeePlanMapper, LateFeePlan> {

	@Autowired
	private LateFeePlanMapper lateFeePlanMapper;


    /**
     * 根据objectId获取档案对应的滞纳金配置
     * @return
     */
	@Transactional(readOnly = false)
    public List<LateFeePlan> getList(String objectId){
	    LateFeePlan lateFeePlan = new LateFeePlan();
        lateFeePlan.setClassid(objectId);
	    return lateFeePlanMapper.findList(lateFeePlan);
    }


}